package cn.itcast.bos.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import cn.itcast.bos.domain.base.Courier;

/*
 * 参数1:实体类
 * 参数2:实体类中主键的类型
 * 
 */
public interface CourierRepository extends JpaRepository<Courier, Integer>,JpaSpecificationExecutor<Courier>{
	
	@Query(value="update Courier set deltag = '1' where id = ?")
	@Modifying
	public void updateDeltag(int id);
	
	
	@Query(value="update Courier set deltag = '' where id = ?")
	@Modifying
	public void huanyuanDeltag(int id);
	
	
}
